function(ADD_DEMO argc)
	set(demo ${ARGV0})
	WITH_DEMO(${demo} ${demo}.cpp ${ARGN})
endfunction()

ADD_DEMO(aa_demo                   )
ADD_DEMO(aa_test                   )
ADD_DEMO(alpha_gradient            )
ADD_DEMO(alpha_mask                parse_lion.cpp)
ADD_DEMO(alpha_mask2               parse_lion.cpp)
ADD_DEMO(alpha_mask3               make_arrows.cpp make_gb_poly.cpp)
ADD_DEMO(bezier_div                )
ADD_DEMO(blend_color               )
ADD_DEMO(blur                      )
ADD_DEMO(bspline                   interactive_polygon.cpp)
ADD_DEMO(circles                   )
ADD_DEMO(component_rendering       )
ADD_DEMO(compositing               )
ADD_DEMO(compositing2              )
ADD_DEMO(conv_contour              )
ADD_DEMO(conv_dash_marker          )
ADD_DEMO(conv_stroke               )
ADD_DEMO(distortions               )
ADD_DEMO(flash_rasterizer          )
ADD_DEMO(flash_rasterizer2         )
#ADD_DEMO(freetype_test             )
ADD_DEMO(gamma_correction          )
ADD_DEMO(gamma_ctrl                )
ADD_DEMO(gamma_tuner               )
ADD_DEMO(gouraud                   )
ADD_DEMO(gouraud_mesh              )
ADD_DEMO(gpc_test                  make_arrows.cpp make_gb_poly.cpp ${agg_gpc_src})
ADD_DEMO(gradient_focal            )
ADD_DEMO(gradients                 )
ADD_DEMO(graph_test                )
ADD_DEMO(idea                      )
ADD_DEMO(image_alpha               )
ADD_DEMO(image_filters             )
ADD_DEMO(image_filters2            )
ADD_DEMO(image_fltr_graph          )
ADD_DEMO(image_perspective         interactive_polygon.cpp)
ADD_DEMO(image_resample            interactive_polygon.cpp)
ADD_DEMO(image_transforms          )
ADD_DEMO(image1                    )
ADD_DEMO(line_patterns             )
ADD_DEMO(line_patterns_clip        )
ADD_DEMO(lion                      parse_lion.cpp)
ADD_DEMO(lion_lens                 parse_lion.cpp)
ADD_DEMO(lion_outline              parse_lion.cpp)
ADD_DEMO(mol_view                  make_arrows.cpp make_gb_poly.cpp)
ADD_DEMO(multi_clip                parse_lion.cpp)
ADD_DEMO(pattern_fill              )
ADD_DEMO(pattern_perspective       make_arrows.cpp make_gb_poly.cpp interactive_polygon.cpp)
ADD_DEMO(pattern_resample          make_arrows.cpp make_gb_poly.cpp interactive_polygon.cpp)
ADD_DEMO(perspective               parse_lion.cpp interactive_polygon.cpp)
ADD_DEMO(polymorphic_renderer      )
#ADD_DEMO(pure_api                  )
ADD_DEMO(raster_text               )
ADD_DEMO(rasterizer_compound       )
ADD_DEMO(rasterizers               )
ADD_DEMO(rasterizers2              )
ADD_DEMO(rounded_rect              )
ADD_DEMO(scanline_boolean          interactive_polygon.cpp)
ADD_DEMO(scanline_boolean2         make_arrows.cpp make_gb_poly.cpp)
ADD_DEMO(simple_blur               parse_lion.cpp)
#ADD_DEMO(svg_test                  )
ADD_DEMO(trans_curve1              interactive_polygon.cpp ${agg_font_win32_tt_src})
ADD_DEMO(trans_curve2              parse_lion.cpp interactive_polygon.cpp ${agg_font_win32_tt_src})
ADD_DEMO(trans_polar               )
ADD_DEMO(truetype_test             ${agg_font_win32_tt_src})
